<?php

namespace App\Http\Resources;



use Dingo\Blueprint\Annotation\Resource;
use Illuminate\Http\Resources\Json\JsonResource;

class RsMsgManageResource extends JsonResource {




    public function toArray($request){
        //添加消息数据


        $msg=MsgInfoResource::collection($this->getMsgInfo);
        return [
          'id'=>$this->id,
          'msg_type'=>$this->msg_type,
          'msg_info'=>$msg,
            'msg_info_count'=>$this->get_msg_info_count


        ];
    }

}
